package com.ecr.hub.front.validator;

import javax.faces.application.FacesMessage;
import javax.faces.application.FacesMessage.Severity;

public class StringNumberValidator extends AbstractRegexValidator {

	@Override
	protected String getPatternToMatch() {
		return AbstractRegexValidator.NUMBER;
	}

	@Override
	protected String[] getAttributsList() {
		return new String[] { AbstractValidator.FIELD_NAME };
	}

	@Override
	protected String getMessageKey() {
		return "validator.number";
	}

	@Override
	protected Severity getSeverityLevel() {
		return FacesMessage.SEVERITY_ERROR;
	}

}
